package com.owc.domain.dto.admin;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author xiaom
 * @Date 2020/3/2 15:04
 * @Version 1.0.0
 * @Description <>
 **/
@Data
@ApiModel("兑换订单DTO")
public class ExchangeOrderDTO implements Serializable {

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("兑换人")
    private String userName;

    @ApiModelProperty("兑换人手机号码")
    private String userPhone;

    @ApiModelProperty("兑换时间")
    private String time;

    @ApiModelProperty("兑换源tokenName")
    private String fromTokenName;

    @ApiModelProperty("兑换目标tokenName")
    private String toTokenName;

    @ApiModelProperty("兑换数量")
    private BigDecimal amount;

    @ApiModelProperty("汇率")
    private BigDecimal rate;

    @ApiModelProperty("获得数量")
    private BigDecimal result;

    @ApiModelProperty("兑换类型 (和汇率配置key对应)")
    private String type;

    @ApiModelProperty("订单ID")
    private Long orderId;

}
